const env = (() => {
  const ENV = {
    baseURL: '',
    baseURLApi: ''
  }

  switch (process.env.NODE_ENV) {
    case 'development':
      ENV.baseURL = `https://nevem.yooyuu.com.cn`
      break
    default:
      ENV.baseURL = `https://api.nevem.mrwish.net`
      break
  }

  ENV.baseURLApi = `${ENV.baseURL}/api/v1`

  return ENV
})()

export default env
